package cn.wangzengqiang.study.designpattern.factory.c;


public abstract class RouJiaMo {
    protected String name;

    /**
     * 准备工作
     */
    public final void prepare(RouJiaMoYLFactory ylFactory) {
        Meat meat = ylFactory.createMeat();
        YuanLiao yuanliao = ylFactory.createYuanliao();
        System.out.println("使用官方的原料" + meat + " , " + yuanliao + "作为原材料制作肉夹馍 ");
    }

    /**
     * 使用你们的专用袋-包装
     */
    public final void pack() {
        System.out.println(this.name + ":肉夹馍-专用袋-包装");
    }

    /**
     * 秘制设备-烘烤2分钟
     */
    public final void fire() {
        System.out.println(this.name + ":肉夹馍-专用设备-烘烤");
    }
}